package com.syq.example;

public enum HUlUWA {
    one("大力娃", "力大无穷"),//枚举的实例就是调用构造方法 然后命名对象名
    two ("千里眼娃", "千里眼"),
    three("铜头铁臂娃", "铜头铁臂娃"),
    four ("喷火娃", "喷火"),
    five ("吐水娃", "吐水"),
    six("隐身娃", "隐身"),
    seven("葫芦娃", "葫芦娃");
    private String name;
    private String desc;
     HUlUWA(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
//枚举 把所有可能都列举完成
class Test{
    public static void main(String[] args) {
        HUlUWA hUlUWA1 = HUlUWA.one;
        System.out.println(hUlUWA1.getName());

    }
}
